<?php
    session_start();

    if (!isset($_SESSION['user'])){
        header( 'Location: login.php');
    } 
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <link href="../css/bootstrap.min.css" rel="stylesheet">
        <link rel="shortcut icon" href="/bootstrap/img/favicon.ico">
        
        <title>AC MILAN </title>
        
        <style type="text/css">
            .container {
            margin: 0 auto;
            max-width: 960px;
          }
          
        </style>
        </head>
            <?php require_once('../modulos/header.php'); ?> 
        
            <body  style="background-image: url(../img/rayas_verticales.jpg); background-size: 100%;">
               
                <?php require_once('../modulos/navbar.php'); ?>
                
                <div class='row'>
                    <br><br><br>
                <div class="col-md-6 text-center col-lg-offset-3" style="background: #e7e7e7; border-radius: 15px;">
                        <h1>Temporadas</h1>
                        <p class="lead">Ingresa al sistema las Temporadas en las que participa el Club.</p>
                        <br>
                        <br>
                        <br>
                        <form method="POST" action="../insertar/temporadas.php">
                            <div class="col-md-6">
                                <label>Fecha de inicio:</label>
                                <input name="fecha" type="date" class="form-control" required>
                            </div>
                            <div class="col-md-6">
                                <label>Periodo:</label>
                                <input name="periodo" type="text" class="form-control" placeholder="2010-2012" required>
                                <br>
                                <br>
                                <div style="display: inline;">
                                <button type="submit" class="btn btn-success"> Guardar</button>
                                <button id="modificar" onclick="redirect();" class="btn btn-primary"> Modificar</button>
                                </div>
                            </div>   
                        </form>
                    </div>        
            </div> 
       
       <script type="text/javascript">
            function redirect(){
                window.location = "mod_temporadas.php";
            }
        </script>
        
    </body>
</html>